<?php
if (isset($_POST['openid']) && !empty($_POST['openid'])){
    include '../c/config.php';
    include 'thearray.php';
    $mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
    if (!$mysqli->set_charset("utf8")) {}
    $openid=addslashes(trim($_POST['openid']));
    $is='n';
    $query=$mysqli->query("SELECT id FROM qdui where openid='".$openid."' limit 0,1  ");
    if($query->num_rows>0){
        $is='y';
    }
    $query=$mysqli->query("SELECT id FROM joinqiu where openid='".$openid."' and isapply=1  limit 0,1  ");
    if($query->num_rows>0){
        $is='y';
    }
    
    
    
    $mysqli->close();
    echo json_encode(array('s'=>$is));
}

